import re

def validate_mac_address(mac):
    """验证 MAC 地址格式"""
    mac_regex = re.compile(r'^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$')
    return bool(mac_regex.match(mac))

def generate_mac_addresses(start_mac, count, prefix=""):
    """生成指定数量的 MAC 地址"""
    if not validate_mac_address(start_mac.replace(":", "").replace("-", "")):
        raise ValueError("起始 MAC 地址格式不正确")
    
    mac_int = int(start_mac.replace(":", "").replace("-", ""), 16)
    mac_list = []
    
    for i in range(count):
        new_mac_int = mac_int + i
        new_mac = format(new_mac_int, '012x')
        formatted_mac = prefix + ":".join(new_mac[i:i+2] for i in range(0, len(new_mac), 2))
        mac_list.append(formatted_mac)
    
    return mac_list

# 示例使用
start_mac = "34:8e:89:1a:db:99"
prefix = "34:8e:89"
count = 10

mac_addresses = generate_mac_addresses(start_mac.replace(":", ""), count, prefix)
for mac in mac_addresses:
    print(mac)